﻿#ifndef ALGO_CAM_L_FORM_H
#define ALGO_CAM_L_FORM_H

#include <QWidget>
#include <QJsonObject>

namespace Ui
{
    class Algo_Cam_L_Form;
}

class Algo_Cam_L_Form : public QWidget
{
    Q_OBJECT

public:
    explicit Algo_Cam_L_Form(QString chnid, QWidget* parent = nullptr);
    ~Algo_Cam_L_Form();

private slots:
    void on_btn_getparam_1_clicked();

    void on_btn_setparam_1_clicked();

    void on_btn_getparam_2_clicked();

    void on_btn_setparam_2_clicked();

    void on_btn_getparam_3_clicked();

    void on_btn_setparam_3_clicked();

    void on_cbx_eventtype_currentIndexChanged(int index);

    QStringList type();

    void InputValidator();

public slots:
    void  onGetAlgoParam(QJsonObject obj);

    void  onGetExternalParam(QJsonObject obj);

    void  onGetAlarmOut(QJsonObject obj);

signals:
    void sigSendParam(QString method, QJsonObject body);

private:
    Ui::Algo_Cam_L_Form* ui;
    QString m_chnid;
};

#endif // ALGO_CAM_L_FORM_H
